package org.example.clouddemo.order.service.common;

import org.example.clouddemo.bean.common.entity.Order;
import org.example.common.bean.LoginUser;

import java.util.List;

public interface OrderService {
    String createOrder(Order order);

    List<Order> queryOrdersByAll();

    List<Order> getOrdersByUserId(Long userId);

    int deleteByOrderId(Long id, LoginUser loginUser);

    String updateQuantity(Order order);

    String settleOrder(Order order);
}
